<?php
class CartItem
{
	function __construct($product){
		$this->quantity = 1;
		$this->product = $product;
	}
	function increment_quantity(){
		$this->quantity++;
	}
	function getName(){
		return $this->product->name;
	}
	function getPrice(){
		return $this->product->price * $this->quantity;
	}
}